<?php

  /**
  *@desc A single post template.
  */

  get_header();
  
?>
<div id="primaryContent" class="grid_18 alpha">

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="postWrapper" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

			<h1 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
			<small><?php the_date(); ?> by <?php the_author(); ?></small>
			<?php echo get_avatar( $comment, 32 ); ?>
			<?php the_tags(); ?>
		  
			<div class="post"><?php the_content(__('(more...)')); ?></div>
			<p class="postMeta"><?php edit_post_link(__('Edit'), ''); ?></p>
		</div>

	<?php
		comments_template();

		endwhile; else: 
	?>
	

		<p>Sorry, no pages matched your criteria.</p>

	<?php endif; ?>
	
	<?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>

</div>

<?php get_footer(); ?>